package 代码记录.校招笔试真题.笔试真题_2023;

import java.util.ArrayList;

/**
 * @author zx
 * @create 2023-02-19 20:46
 */
public class Test {
    public static void main(String[] args) {
        String str1 = "he" + "llo";
        String str2 = "hello";
        String str3 = new String("hello");
        String str4 = new String("hello");
        StringBuilder str5 = new StringBuilder("hello");
        StringBuilder str6 = new StringBuilder("hello");
        System.out.println(str1 == str2);
        System.out.println(str3 == str4);
        System.out.println(str5 == str6);
        System.out.println(str1.equals(str2));
        System.out.println(str3.equals(str4));
        System.out.println(str5.equals(str6));
        ArrayList list = new ArrayList(20);
        System.out.println(Math.pow(2,16));
    }
}
